home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0965.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.2 KB  |  33 lines

  1. >Your examples were all correct.  Any missing infromation
  2. >is taken from the left hand end of the URL of the referring
  3. >document.  When a relative path is given (no protocol,
  4. >hostname or leading /) then the rule is to strip
  5. >everything off the current URL which is to the right of
  6. >its rightmost "/", the append the relative path.
  7. >This is always what you expect, except that it might
  8. >surprise you if you don't think too hard that in directory
  9. >/a/fred, "bert" refers to /a/bert, not /a/fred/bert, so
  10.  
  11. I think you need to clarify this.  If you are in a document inside of
  12. /a/fred/  then bert should refer to /a/fred/bert.  If you meant that
  13. fred is a document (the current one) inside of a, then bert should
  14. refer to /a/bert.
  15.  
  16. >/a/fred/bert should be referred to as "fred/bert" or "./bert".
  17. >Anyway, you are right, and if there are browsers which do otherwise
  18. >that is their problem, unless I've goofed.
  19.  
  20. Should the browser collapse a .. path by itself, or pass it on to the
  21. server:
  22.  
  23.   in           http://server/foo/bar/baz/doc.html
  24.   translate    ../../cool.html
  25.   to           http://server/foo/bar/baz/../../cool.html
  26.   or           http://server/foo/doc.html
  27.  
  28. And I should note that collapsing the path is a very trivial operation.
  29.  
  30.        tom
  31.              
  32.  
  33.